package package6;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;

public class FileCopyPlay {
	public void FileCreate(String dst) throws IOException{
		InputStream is = System.in;
		FileOutputStream fo=new FileOutputStream(dst);
		int data = -1;
		while((data=is.read())!=-1){
			fo.write(data);
		}
		fo.flush();
		fo.close();
		is.close();
	}
	public static void main(String[] args) throws IOException{
		FileCopyPlay fcp = new FileCopyPlay();
		fcp.FileCreate("e:/321321.txt");
	}

}
